package com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract;

import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.dto.HrEmployeeContractListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.employee.contract.param.HrEmployeeContractUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * HrEmployeeContractCloudService
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-HR", fallback = HrEmployeeContractCloudServiceFallback.class)
@RequestMapping("/hr/employee/contract")
public interface HrEmployeeContractCloudService {

    /**
     * 查询员工合同信息列表.
     *
     * @param param the param
     * @return the employee contract list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract HrEmployeeContractListCloudDto query(@RequestBody HrEmployeeContractQueryCloudParam param);

    /**
     * 新增员工合同信息.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody HrEmployeeContractCreateCloudParam param);

    /**
     * 编辑员工合同信息.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody HrEmployeeContractUpdateCloudParam param);

    /**
     * 删除员工合同信息.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody HrEmployeeContractDeleteCloudParam param);
}
